package org.edu.modules.stu.stu.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.edu.common.base.BaseEntity;

import java.sql.Date;

import org.hibernate.validator.constraints.Length;

import java.io.Serializable;

/**
 * entity-惩罚信息表
 */
@TableName("ve_stu_punish")
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "惩罚信息表对象", description = "ve_stu_punish")
public class VeStuPunish extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField
    @ApiModelProperty(value = "学生id")
    private Integer stuId;

    @TableField
    @ApiModelProperty(value = "学生姓名")
    @Length(max = 30)
    private String name;

    @TableField
    @ApiModelProperty(value = "学生学号")
    @Length(max = 30)
    private String code;

    @TableField
    @ApiModelProperty(value = "院系id")
    private Integer falId;

    @TableField
    @ApiModelProperty(value = "专业id")
    private Integer specId;

    @TableField
    @ApiModelProperty(value = "班级id")
    private Integer bjId;
    @TableField
    @ApiModelProperty(value = "班级id")
    private String bjText;

    @TableField
    @ApiModelProperty(value = "惩罚类型id")
    private Integer typeId;

    @TableField
    @ApiModelProperty(value = "惩罚时间")
    @JsonFormat(timezone = "GMT+8", locale = "zh", pattern = "yyyy-MM-dd")
    private Date punishTime;

    @TableField
    @ApiModelProperty(value = "惩罚描述")
    @Length(max = 65535)
    private String content;

}
